﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TemporadaEdit.aspx.cs"
    Inherits="WebAppPlanProduccion.App.TemporadaEdit" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/Styles/GridStyle.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Temporada.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/DirtyCheck.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/ajaxupload.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.datepick.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.datepick-es-AR.js" type="text/javascript"></script>
    <link href="/Styles/jquery.datepick.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $('#txtFechaDesde').datepick({ dateFormat: 'dd/mm/yyyy' });
            $('#txtFechaHasta').datepick({ dateFormat: 'dd/mm/yyyy' });
        });
    </script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Detalle de Temporada
    </h2>
    <div class="editionContainerFilter">
        <p>
            <span class="title2">Id:</span>
            <asp:TextBox ID="txtTemporadaId" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <span style="visibility:hidden">*</span>
        </p>
        <p>
            <span class="title2 secondColumn">Usuario Creador:</span>
            <asp:TextBox ID="txtAuditUserNameCreacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>        
        <div class="clear">
        </div>        
        <p>
            <span class="title2">Nombre:</span>
            <asp:TextBox ID="txtNombre" runat="server" CssClass="inputs" ClientIDMode="Static"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtNombre"
                runat="server" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        </p>
         <p>
            <span class="title2 secondColumn">Fecha Creaci&oacute;n:</span>
            <asp:TextBox ID="txtAuditFechaCreacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Fecha de Inicio:</span>
            <asp:TextBox ID="txtFechaDesde" runat="server" CssClass="inputs" ClientIDMode="Static"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtFechaDesde"
                runat="server" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        </p>
         <p>
            <span class="title2 secondColumn">Usuario Modificador:</span>
            <asp:TextBox ID="txtAuditUserNameModificacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Fecha de Fin:</span>
            <asp:TextBox ID="txtFechaHasta" runat="server" CssClass="inputs" ClientIDMode="Static"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtFechaHasta"
                runat="server" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        </p>
         <p>
            <span class="title2 secondColumn">Fecha Modificaci&oacute;n:</span>
            <asp:TextBox ID="txtAuditFechaModificacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Letra:</span>
             <asp:TextBox ID="txtLetra" runat="server" MaxLength="1" CssClass="inputs" ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">N&uacute;mero de Semanas:</span>
            <asp:TextBox ID="txtNumeroSemanas" runat="server" CssClass="inputs readonly" ReadOnly="true"
                ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Activa:</span>
            <asp:CheckBox ID="chkActiva" runat="server" ClientIDMode="Static" />
        </p>
        <div class="clear">
        </div>
    </div>
    <br />
    <div class="buttons">
        <asp:LinkButton ID="lnkGuardar" runat="server" CssClass="guardar" OnClick="lnkGuardar_Click">Guardar</asp:LinkButton>
        <asp:LinkButton ID="lnkCancelar" runat="server" ClientIDMode="Static" CssClass="agregarNuevo" OnClientClick="if(document.DirtyCheck.areControlsDirty()) { return confirm('Ha realizado modificaciones sin guardar. Desea continuar?');} else { return true;}" onclick="lnkCancelar_Click" CausesValidation="false" >Cancelar</asp:LinkButton>  
    </div>

    <script type='text/javascript'>

        $(document).ready(function () {

            document.DirtyCheck = new DirtyCheck();
            document.DirtyCheck.loadControlState();            
        });
    </script>

</asp:Content>
